/**
 * 支付宝支付
 * @author 支付
 * @date 2024-1-9 下午 12:47
 */
class Pay {
    /**
     * 支付
     * @param price 价格
     * @param orderId 订单号
     * @param accountId 账号Id
     * @param informationId 用户信息Id
     * @return {Promise<string>}  HTML页面
     */
    alipayPaymentQRCode(price,orderId,accountId,informationId){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/alipay/payment",
                method: "POST",
                data: {
                    price: price,
                    orderId:orderId,
                    accountId:accountId,
                    informationId : informationId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}